package com.ant.rxjava.mvp;

/**
 * Created by Ant on 2018/2/6  15:22
 * <p>
 * <p>
 *
 * @version 1.0.0
 * @auther Ant
 */

public class MainPresenter {
    private MainViewInter mView;

    public MainPresenter(){
        super();
    }


    public void attachView(MainViewInter view){
        mView=view;
    }

    public void detachView(){
        mView=null;
    }

    public boolean isViewAttached(){
        return mView!=null;
    }

}
